package br.unifor.cct.mia.comunication.server;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;

import br.unifor.cct.mia.comunication.comum.InputData;
import br.unifor.cct.mia.evaluate.classification.WekaClassification;

public class WekaClassificationServer extends AbstractServer {

	@Override
	protected Double evaluate(InputData inputData) throws FileNotFoundException, IOException, InterruptedException {
		File f = inputData.getFile();
		Integer learnerType = inputData.getLearnerType();
		String[] options = inputData.getOptions();
		
		WekaClassification classificator = new WekaClassification(learnerType,options);
		return classificator.evaluate(f);
	}

}
